package org.example.minebackend.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment {
    private int id;
    private String content;
    private int userId;
    private LocalDateTime createTime;
    private int invitationId;
    private int parentId;           // 帖子id
    private int rootId;             // 帖子id
    private List<Comment> childrenComment;
}
